package com.freemyleft.left.left_app.mian.index.my.base_setting.certification.dialog;

import android.content.Context;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;

import com.freemyleft.left.left_app.R;
import com.freemyleft.left.zapp.delegates.LeftDelegate;
import com.freemyleft.left.zapp.ui.dialog.MyPhoneDiaLog;

public class TeacherDiaLog extends MyPhoneDiaLog {
    LinearLayout ll_full_time,ll_free,ll_University_student;
    View bg;

    LeftDelegate DELEGATE;
    public TeacherDiaLog(Context context ,LeftDelegate delegate) {
        super(context);
        this.DELEGATE = delegate;

    }
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.dialog_teacher);
        //设置window背景，默认的背景会有Padding值，不能全屏。当然不一定要是透明，你可以设置其他背景，替换默认的背景即可。
        getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
        //一定要在setContentView之后调用，否则无效
        getWindow().setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
        //按空白处不能取消动画
        setCanceledOnTouchOutside(true);
        //初始化界面控件
        initView();
        //初始化界面数据
    }
    private void initView(){
        bg=findViewById(R.id.bg);

        ll_full_time=findViewById(R.id.ll_full_time);
        ll_free=findViewById(R.id.ll_free);
        ll_University_student=findViewById(R.id.ll_University_student);
        bg.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                dismiss();
            }
        });
    }



}
